import { Column, CreateDateColumn, DeleteDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";

@Entity('role_tb')
export class Role {
    @PrimaryGeneratedColumn({ type: 'bigint', comment: '角色id' })
    role_id:number
    @Column({ comment: '角色名称' })
    role_name: string;
    @Column({ default: 'admin', comment: '角色标识' })
    role_key: string;
    @Column({ default: 0, comment: '显示顺序' })
    role_sort: number;
    @Column({ default: 0, comment: '角色状态 0正常 1禁用' })
    status: number;
    @Column({ default: null, comment: '备注' })
    remark: string;
    @CreateDateColumn({comment: '创建时间'})
    create_time: Date;
    @UpdateDateColumn({comment: '更新时间'})
    update_time: Date;
    @DeleteDateColumn({select: false})
    del_time: Date;
}
